package stu.lee.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import stu.lee.dao.AdminMapper;
import stu.lee.entity.Admin;

import java.util.List;

@Service("adminService")
public class AdminServiceImpl implements IAdminService {
    /**
     *
     */
    @Autowired
    public AdminMapper adminMapper;

    public List<Admin> showAllAdmin() {
        return adminMapper.showAllAdmin();
    }


    public List<Admin> login(Admin admin) {
        return adminMapper.login(admin);
    }

    public void register(Admin admin) {
        adminMapper.register(admin);
    }
}
